package com.yuelife.service.service;

import com.github.pagehelper.PageInfo;
import com.yuelife.service.pojo.SCommonClass;

import java.util.List;

/****
 * @Author:admin
 * @Description:SCommonClass业务层接口
 * @Date 2019/6/14 0:16
 *****/
public interface SCommonClassService {

    /***
     * SCommonClass多条件分页查询
     * @param sCommonClass
     * @param page
     * @param size
     * @return
     */
    PageInfo<SCommonClass> findPage(SCommonClass sCommonClass, int page, int size);

    /***
     * SCommonClass分页查询
     * @param page
     * @param size
     * @return
     */
    PageInfo<SCommonClass> findPage(int page, int size);

    /***
     * SCommonClass多条件搜索方法
     * @param sCommonClass
     * @return
     */
    List<SCommonClass> findList(SCommonClass sCommonClass);

    /***
     * 删除SCommonClass
     * @param id
     */
    void delete(Integer id);

    /***
     * 修改SCommonClass数据
     * @param sCommonClass
     */
    void update(SCommonClass sCommonClass);

    /***
     * 新增SCommonClass
     * @param sCommonClass
     */
    void add(SCommonClass sCommonClass);

    /**
     * 根据ID查询SCommonClass
     * @param id
     * @return
     */
     SCommonClass findById(Integer id);

    /***
     * 查询所有SCommonClass
     * @return
     */
    List<SCommonClass> findAll();
}
